package vista.Cliente.Alta;
import javax.swing.BorderFactory;
import javax.swing.ComboBoxModel;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JFormattedTextField;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;
import javax.swing.JTextField;

import javax.swing.WindowConstants;
import javax.swing.SwingUtilities;


/**
* This code was edited or generated using CloudGarden's Jigloo
* SWT/Swing GUI Builder, which is free for non-commercial
* use. If Jigloo is being used commercially (ie, by a corporation,
* company or business for any purpose whatever) then you
* should purchase a license for each developer using Jigloo.
* Please visit www.cloudgarden.com for details.
* Use of Jigloo implies acceptance of these licensing terms.
* A COMMERCIAL LICENSE HAS NOT BEEN PURCHASED FOR
* THIS MACHINE, SO JIGLOO OR THIS CODE CANNOT BE USED
* LEGALLY FOR ANY CORPORATE OR COMMERCIAL PURPOSE.
*/
public class AltaProductoCliente extends javax.swing.JFrame {
	
	private static AltaProductoCliente instancia;
	private JLabel jLabelTitulo;
	private JPanel DatosProducto;
	private JLabel jLabel3;
	private JButton jButton3;
	private JButton jButton2;
	private JComboBox Categorias;
	private JFormattedTextField jFormattedTextField1;
	private JLabel jLabel2;
	private JButton jButton1;
	private JLabel jLabel1;

	/**
	* Auto-generated main method to display this JFrame
	*/
	public static void main(String[] args) {
		SwingUtilities.invokeLater(new Runnable() {
			public void run() {
				AltaProductoCliente inst = new AltaProductoCliente();
				inst.setLocationRelativeTo(null);
				inst.setVisible(true);
			}
		});
	}
	
	
	public static AltaProductoCliente getInstancia() {
		
		if (instancia==null)
			instancia = new AltaProductoCliente();
		
		return instancia;
	}
	
	private AltaProductoCliente() {
		super();
		initGUI();
	}
	
	private void initGUI() {
		try {
			setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
			getContentPane().setLayout(null);
			{
				jLabelTitulo = new JLabel();
				getContentPane().add(jLabelTitulo);
				jLabelTitulo.setText("Cargar Nuevo Producto");
				jLabelTitulo.setFont(new java.awt.Font("Verdana",1,20));
				jLabelTitulo.setBounds(24, 18, 364, 40);
			}
			{
				DatosProducto = new JPanel();
				getContentPane().add(DatosProducto);
				DatosProducto.setBounds(30, 89, 341, 155);
				DatosProducto.setBorder(BorderFactory.createTitledBorder("Datos Producto a Trasportar"));
				DatosProducto.setLayout(null);
				{
					jLabel1 = new JLabel();
					DatosProducto.add(jLabel1);
					jLabel1.setText("Codigo");
					jLabel1.setBounds(25, 39, 76, 17);
				}
				{
					jButton1 = new JButton();
					DatosProducto.add(jButton1);
					jButton1.setText("Generar Codigo");
					jButton1.setBounds(212, 36, 97, 23);
				}
				{
					jLabel2 = new JLabel();
					DatosProducto.add(jLabel2);
					jLabel2.setText("Descripcion");
					jLabel2.setBounds(25, 75, 62, 16);
				}
				{
					jFormattedTextField1 = new JFormattedTextField();
					DatosProducto.add(jFormattedTextField1);
					jFormattedTextField1.setBounds(120, 72, 189, 23);
				}
				{
					jLabel3 = new JLabel();
					DatosProducto.add(jLabel3);
					jLabel3.setText("Categoria");
					jLabel3.setBounds(25, 116, 62, 16);
				}
				{
					ComboBoxModel CategoriasModel = 
							new DefaultComboBoxModel(
									new String[] { "Item One", "Item Two" });
					Categorias = new JComboBox();
					DatosProducto.add(Categorias);
					Categorias.setModel(CategoriasModel);
					Categorias.setBounds(120, 107, 189, 23);
				}
			}
			{
				jButton2 = new JButton();
				getContentPane().add(jButton2);
				jButton2.setText("Agregar");
				jButton2.setBounds(194, 288, 73, 29);
			}
			{
				jButton3 = new JButton();
				getContentPane().add(jButton3);
				jButton3.setText("Cancelar");
				jButton3.setBounds(298, 288, 73, 29);
			}
			pack();
			this.setSize(416, 374);
		} catch (Exception e) {
		    //add your error handling code here
			e.printStackTrace();
		}
	}

}
